package org.firebug.spring.boot.web.controller;

import org.firebug.spring.boot.web.bean.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/")
public class RootController {
    @RequestMapping(value = "/common", method = {RequestMethod.GET})
    public String common(Model model) {
        model.addAttribute("html", "<em>转 义</em>");
        model.addAttribute("user", User.getInstance());
        model.addAttribute("users", User.getInstances());
        return "/common";
    }
}

